<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>哈尔滨师范大学教育管理系统</title>
    <style>
body {
	background-color: #f8f8f8;
	font-family: Arial, sans-serif;
}

h1 {
	color: #333;
	text-align: center;
	margin-top: 100px;
}

.login-form {
	max-width: 400px;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 6px;
	padding: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	opacity: 0.9;
}

.form-group {
	margin-bottom: 20px;
}

label {
	display: block;
	margin-bottom: 6px;
	color: #666;
}

input[type="text"], input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

input[type="radio"] {
	margin-right: 5px;
}

input[type="submit"] {
	background-color: #0084ff;
	width:400px;
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 4px;
}

input[type="button"] {
	margin-top:3px;
	background-color: #0084ff;
	width:400px;
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 4px;
}

.error-message {
	color: #ff0000;
}
</style>
</head>
<body background="/img/登录背景图.jpg">
<h1 style="color:white">哈尔滨师范大学教育管理系统</h1>
<div class="login-form">
    <form th:action="@{/manong/gotoLogin}" method="post">
        <div class="form-group">
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username" th:value="${username}">
        </div>
        <div class="form-group">
            <label for="password">密码：</label>
            <input type="password" id="password" name="password">
        </div>
        <label>职位：</label>
        <div class="form-group" style="text-align:center">
            
            <input type="radio" name="work" value="student">学生
            <input type="radio" name="work" value="teacher">教师
            <input type="radio" name="work" value="manager">管理员
        </div>
        <div class="form-group">
            <input type="submit" name="submit" value="登录"><br>
            <input type="button" name="zhuce" value="注册">
        </div>
        <div th:if="${msg}" class="error-message">
            <p th:text="${msg}"></p>
        </div>
    </form>
</div>
</body>
</html>